package homework0322;

public class Homework4_2 {
	public static void main(String[] args) {
		double sum = 0;
        double n = 1;   
        double m = 1;
        for(int i = 1; i <= 8; i++ ) {
            sum = n / m + sum;
            double temp = n;
            n = m;
            m = temp + m;
        }
        System.out.println(sum);
    }
}
